package net.qhzw.vip.qiyu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.qhzw.vip.qiyu.dto.DeliveryManDto;
import net.qhzw.vip.qiyu.entity.Area;

import java.util.List;

public interface AreaMapper extends BaseMapper<Area> {


    Area selectByAreaName(String areaName);


    /**
     * 递归查询所有的父亲节点
     * @param areaId
     * @return
     */
    List<Area> selectAreaParentById(Long areaId);

    Area selectAreaById(Long areaId);


    /**
     * 根据PID查询所有的孩子ID
     * @param pid
     * @return
     */
    List<Long> srchAllChildrenIdByPid(Long pid);


    List<Area> selectChildsByPid(Long pid);


    List<DeliveryManDto> selectDeliveryPntRgn(Integer isVip);

}
